<?php
declare (strict_types = 1);

namespace app\common\validate;

use think\Validate;
class RecruitCustomer extends Validate
{
    protected $rule = ['mobile' => 'require','username' => 'require','relationship' => 'require','intention' => 'require','user_type' => 'require','home_mobile' => 'require','address' => 'require','address_info' => 'require',
    ];

    protected $message = ['mobile.require' => '手机号为必填项','username.require' => '姓名为必填项','relationship.require' => '身份为必填项','intention.require' => '客户意向为必填项','user_type.require' => '客户类型为必填项','home_mobile.require' => '住宅电话为必填项','address.require' => '居住地为必填项','address_info.require' => '居住地为必填项',
    ];

    /**
     * 添加
     */
    public function sceneAdd()
    {
        return $this->only(['mobile','username','relationship','intention','user_type','home_mobile','address','address_info',]);
    }

    /**
     * 编辑
     */
    public function sceneEdit()
    {
        return $this->only(['mobile','username','relationship','intention','user_type','home_mobile','address','address_info',]);
    }
}
